package homework.extendwork.coding;

public class TestWork extends Work {
    private int intTestNum;
    private int intBugNum;

    static {
        System.out.println("test static");
    }
    {
        System.out.println("test 构造代码块");
    }

    public TestWork(){

        System.out.println("test 无参构造");

    }
    public TestWork(String strWorkName,int intBugNum,int intTestNum){
        super(strWorkName);
        this.setIntBugNum(intBugNum);
        this.setIntTestNum(intTestNum);
        System.out.println("test 有参构造");

    }

    @Override
    public void showWork() {
        System.out.println(this.getStrWorkName()
                +this.getIntBugNum()+this.getIntTestNum());

    }



    public int getIntTestNum() {
        return intTestNum;
    }

    public void setIntTestNum(int intTestNum) {
        this.intTestNum = intTestNum;
    }

    public int getIntBugNum() {
        return intBugNum;
    }

    public void setIntBugNum(int intBugNum) {
        this.intBugNum = intBugNum;
    }
}
